<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>

        
        function clickBtn(){
            // BOM  对象    Window 
            console.log(location);
            console.log(history);

            //DOM DOM树 
            console.log(document);
            
            console.log('hello  script ')
        }
    </script>
</head>
<body>
    

    <!-- <script type="text/Javascript"></script>
    <script type="text/vbs"></script> -->


    <!--
              Javascript : 运行在 浏览器端的 脚本语言    VBScript 
       -->



       FN+F12   （请在控制台打开）


     <button onclick="clickBtn()"> 点我输出 </button>







    <div style="width: 300px;height: 300px;border: solid 1px red;"
    
        onmouseenter="enterDiv()"

        onmouseleave="leaveDiv()"

        onmousemove="moveDiv()"

        >



    </div>



    
    <script>
        //进入
        function enterDiv(){
            // const x = window.event.clientX;
            // const y = window.event.clientY;
            // console.log(x,y)

        }

         //进入
        function leaveDiv(){
            const x = window.event.clientX;
            const y = window.event.clientY;
            console.log(x,y)
        }


         //移动
        function moveDiv(){
             const x = window.event.clientX;
            const y = window.event.clientY;
            console.log(x,y)

        }


    </script>


</body>
</html>